package com.jefe.bamboo.service.service;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ClassLoaderProxy;


/**
 * <a href="UserPrefsBmbLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides static methods for the
 * <code>com.jefe.bamboo.service.service.UserPrefsBmbLocalService</code>
 * bean. The static methods of this class calls the same methods of the bean
 * instance. It's convenient to be able to just write one line to call a method
 * on a bean instead of writing a lookup call and a method call.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see com.jefe.bamboo.service.service.UserPrefsBmbLocalService
 *
 */
public class UserPrefsBmbLocalServiceUtil {
    private static UserPrefsBmbLocalService _service;

    public static com.jefe.bamboo.service.model.UserPrefsBmb addUserPrefsBmb(
        com.jefe.bamboo.service.model.UserPrefsBmb userPrefsBmb)
        throws com.liferay.portal.SystemException {
        return getService().addUserPrefsBmb(userPrefsBmb);
    }

    public static com.jefe.bamboo.service.model.UserPrefsBmb createUserPrefsBmb(
        long bmbId) {
        return getService().createUserPrefsBmb(bmbId);
    }

    public static void deleteUserPrefsBmb(long bmbId)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        getService().deleteUserPrefsBmb(bmbId);
    }

    public static void deleteUserPrefsBmb(
        com.jefe.bamboo.service.model.UserPrefsBmb userPrefsBmb)
        throws com.liferay.portal.SystemException {
        getService().deleteUserPrefsBmb(userPrefsBmb);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery, start, end);
    }

    public static com.jefe.bamboo.service.model.UserPrefsBmb getUserPrefsBmb(
        long bmbId)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().getUserPrefsBmb(bmbId);
    }

    public static java.util.List<com.jefe.bamboo.service.model.UserPrefsBmb> getUserPrefsBmbs(
        int start, int end) throws com.liferay.portal.SystemException {
        return getService().getUserPrefsBmbs(start, end);
    }

    public static int getUserPrefsBmbsCount()
        throws com.liferay.portal.SystemException {
        return getService().getUserPrefsBmbsCount();
    }

    public static com.jefe.bamboo.service.model.UserPrefsBmb updateUserPrefsBmb(
        com.jefe.bamboo.service.model.UserPrefsBmb userPrefsBmb)
        throws com.liferay.portal.SystemException {
        return getService().updateUserPrefsBmb(userPrefsBmb);
    }

    public static com.jefe.bamboo.service.model.UserPrefsBmb updateUserPrefsBmb(
        com.jefe.bamboo.service.model.UserPrefsBmb userPrefsBmb, boolean merge)
        throws com.liferay.portal.SystemException {
        return getService().updateUserPrefsBmb(userPrefsBmb, merge);
    }

    public static void clearService() {
        _service = null;
    }

    public static UserPrefsBmbLocalService getService() {
        if (_service == null) {
            Object obj = PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
                    UserPrefsBmbLocalServiceUtil.class.getName());
            ClassLoader portletClassLoader = (ClassLoader) PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
                    "portletClassLoader");

            ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(obj,
                    portletClassLoader);

            _service = new UserPrefsBmbLocalServiceClp(classLoaderProxy);

            ClpSerializer.setClassLoader(portletClassLoader);
        }

        return _service;
    }

    public void setService(UserPrefsBmbLocalService service) {
        _service = service;
    }
}
